package com.hevs.samplewebapp.server.util;

import javax.servlet.http.HttpServletRequest;

/**
 * Validation object for limiting access of restricted servlet
 * 
 * @author Arnaud Durand
 * @date 22.04.2012
 */
public interface CredentialValidator {
	
	/**
	 * @param req
	 * request servlet
	 * @param requiredCredentialLevel
	 * credential level required to use the servlet
	 * @return true if the user is authorized
	 */
	public boolean hasAccess(HttpServletRequest req,
			int requiredCredentialLevel);

}
